<?= $this->Html->css('login', null, array('inline'=>false)) ?>

<?= $this->Form->create('User', array('url'=>'/app/login')) ?>
    
    <p><?= $this->Html->image('soljica.png') ?></p>
    
    <p><?= $this->Form->text('username', array(
        'placeholder' => __('Korisničko ime') . '...'
    )) ?></p>
    <p><?= $this->Form->password('password', array(
        'placeholder' => __('Lozinka') . '...'
    )) ?></p>
    
    <p><?= $this->Form->submit(__('Prijava')) ?></p>
    <p>
        <?= $this->Html->link(_('Zaboravili ste lozinku?'), '/app/forgot_password') ?><br>
        <?= $this->Html->link(_('Ne želite da se prijavite.'), 'http://' . preg_replace('/^admin\./', '', env('SERVER_NAME'))) ?>
    </p>
    <?php echo $this->Session->flash(); ?>

<?= $this->Form->end() ?>